package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "FIM_PAX")
public class FimPax implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "FIM_PAX_SEQ")
	@SequenceGenerator(name = "FIM_PAX_SEQ", sequenceName = "FIM_PAX_SEQ", allocationSize = 1)
	@Column(name = "FIM_PAX_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int fimPaxversion;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "AIRLINE", nullable = false, length = 3)
	private String airline;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "CABIN_CLASS_FK", nullable = false)
	private String cabinClassFk;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "TICKET", nullable = false, length = 10)
	private String ticket;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "COUPON", nullable = false, length = 1)
	private int coupon;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PAX_NAME", nullable = false, length = 50)
	private String paxName;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PASSENGER_TYPE_FK", nullable = false, length = 3)
	private String passengerTypeFk;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@Column(name = "FQT_CARD_NUMBER", length = 20)
	private String fqtCardNumber;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "CK", nullable = false, length = 1)
	private int ck;

	/**
	 *
	 */
	@Column(name = "ETKT", length = 1)
	private Boolean etkt;

	/**
	 *
	 */
	@Column(name = "PC_WT", length = 3)
	private String pcWt;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "FARE_BASIS_FK", nullable = false)
	private String fareBasisFk;

	/**
	 *
	 */
	@ManyToOne(targetEntity = Fim.class, optional = false, fetch = FetchType.LAZY)
	@JoinColumns({@JoinColumn(name = "FIM_FK",referencedColumnName = "FIM",nullable = false)
	})
	private Fim fim;

	public FimPax() {
	}

	// Constructor for primary key
	public FimPax(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getFimPaxversion() {
		return fimPaxversion;
	}

	public void setFimPaxversion(int fimPaxversion) {
		this.fimPaxversion = fimPaxversion;
	}

	public String getAirline() {
		return airline;
	}

	public void setAirline(String airline) {
		this.airline = airline;
	}

	public String getCabinClassFk() {
		return cabinClassFk;
	}

	public void setCabinClassFk(String cabinClassFk) {
		this.cabinClassFk = cabinClassFk;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public int getCoupon() {
		return coupon;
	}

	public void setCoupon(int coupon) {
		this.coupon = coupon;
	}

	public String getPaxName() {
		return paxName;
	}

	public void setPaxName(String paxName) {
		this.paxName = paxName;
	}

	public String getPassengerTypeFk() {
		return passengerTypeFk;
	}

	public void setPassengerTypeFk(String passengerTypeFk) {
		this.passengerTypeFk = passengerTypeFk;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(
			java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public String getFqtCardNumber() {
		return fqtCardNumber;
	}

	public void setFqtCardNumber(String fqtCardNumber) {
		this.fqtCardNumber = fqtCardNumber;
	}

	public int getCk() {
		return ck;
	}

	public void setCk(int ck) {
		this.ck = ck;
	}

	public Boolean getEtkt() {
		return etkt;
	}

	public void setEtkt(Boolean etkt) {
		this.etkt = etkt;
	}

	public String getPcWt() {
		return pcWt;
	}

	public void setPcWt(String pcWt) {
		this.pcWt = pcWt;
	}

	public String getFareBasisFk() {
		return fareBasisFk;
	}

	public void setFareBasisFk(String fareBasisFk) {
		this.fareBasisFk = fareBasisFk;
	}

	public Fim getFim() {
		return fim;
	}

	public void setFim(Fim fim) {
		this.fim = fim;
	}
}
